import request from "@/utils/request";

// 用户登录
export function login(data) {
  return request({
    url: "/auth/login",
    method: "post",
    data,
  });
}

// 获取验证码
export function getCaptcha() {
  return request({
    url: "/auth/captcha",
    method: "post",
  });
}

// 注销
export function logout() {
  return request({
    url: "/auth/logout",
    method: "post",
  });
}
